<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
<HTML>
<!-- HTML file produced from file: manual.tex --
 -- using Hyperlatex v 2.3.1 (c) Otfried Cheong--
 -- on Emacs 21.4 (patch 15) "Security Through Obscurity" XEmacs Lucid, Fri Dec  3 20:36:24 2004 -->
<HEAD>
<TITLE>Scheme 48 Manual -- Advanced thread handling</TITLE>

</HEAD><BODY BGCOLOR="#ffffff">
<EM>Scheme 48 Manual</EM> | <A HREF="s48manual.html#top_node">Contents</A> | In Chapter: <A HREF="s48manual_57.html">Threads</A><BR>Previous: <A HREF="s48manual_59.html">Advanced thread handling</A> | Next: <A HREF="s48manual_59.html">Advanced thread handling</A>
<H2>Advanced thread handling</H2>
<P>The following bindings are part of the <CODE>threads-internal</CODE> structure:
<UL><LI><CODE>(terminate-thread!<I>&nbsp;thread</I>)</CODE><A NAME="1">&nbsp;</A>
<LI><CODE>(kill-thread!<I>&nbsp;thread</I>)</CODE><A NAME="2">&nbsp;</A>
</UL>
<CODE>Terminate-thread!</CODE> unwinds the thread
associated with <CODE><I>thread</I></CODE>, running any pending <CODE>dynamic-wind</CODE>
<CODE><I>after</I></CODE> thunks (in that thread), after which the thread
terminates.  <CODE>Kill-thread!</CODE> causes the thread associated with
<CODE><I>thread</I></CODE> to terminate immediately without unwinding its continuation.
<P><P>
  
Previous: <A HREF="s48manual_59.html">Advanced thread handling</A> | Next: <A HREF="s48manual_59.html">Advanced thread handling</A></BODY></HTML>
